package com.tqw.client.vo;

import com.tqw.pojo.Client;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author Van
 */
@Data
@Accessors(chain = true)
public class ClientVO implements Serializable {
    private static final long serialVersionUID = 2339426890662467322L;
    private Integer id;
    private String username;
    private String email;
    private String phone;
    private String nickname;
    private String avatar;
    private String token;

    public ClientVO(Client client,String token){
        this.id = client.getId();
        this.username = client.getUsername();
        this.email = client.getEmail();
        this.phone = client.getPhone();
        this.nickname = client.getNickname();
        this.avatar = client.getAvatar();
        this.token = token;
    }

}
